#!/bin/bash

myping(){
    ping -c3 -i0.5 -W5 $1 &>/dev/null
    if [ $? -eq 0 ];then
        echo -e "$1 is up!\n"
    else
        echo -e "$1 is down!\n"
    fi
}

for i in {1 2 131 254}
do
    myping "192.168.237.$i" &
done

wait